package net.m510.autosurfer.smbc;

import org.jsoup.nodes.Document;

import net.m510.autosurfer.common.exception.OutOfServiceException;
import net.m510.autosurfer.core.DocumentChecker;
import net.m510.autosurfer.core.exception.UserProcessException;

public class SmbcTopChecker implements DocumentChecker {

	@Override
	public void check(Document doc) throws UserProcessException {
		// システムメンテナンス中か判定
		final String SYSTEM_MAINTAIN_STR="システムメンテナンス中";
		if ( doc.html().contains(SYSTEM_MAINTAIN_STR) ) throw new OutOfServiceException();
	}

}
